using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using Framework.Manager;
using Framework.Network;
using UnityEngine;
using Mono;
using NetMessage;

public class ZMoon : MonoBehaviour
{
    private async void Start()
    {
        await NetworkManager.Instance.Initialize(transform);
        
        C2SLogin reqLogin = new C2SLogin() { Openid = "henry" };

        SocketMessage connected = await NetworkManager.Instance.ConnectAsync(10, "192.168.0.107", 12347, SocketProtocolType.TcpMoon);
        Debug.Log("====  " + connected.ConnectId + "  " + connected.ConnectId);

        
        
        S2CLogin login = await NetworkManager.Instance.Call<S2CLogin>(10, reqLogin);
        
        Debug.Log("====  " + login.Time + "  " + login.Uid);
    }
}
